<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>


<body>
<table width="100%" border="1">
<c:if test="${!empty list && param.areaCode != ''}">
 <tr>
    <td class="nohover" colspan="13">
    <input class="buttondownload" type="button" value="下载" onclick="window.location.href='<%=request.getContextPath()%>/EmployerContractStatistics.do?method=contractXls&areaCode=${param.areaCode}&type=${param.type}'">
    </td>
 </tr>
 <tr>
    <td class="nohover" colspan="13" align="center">
    <b>劳动合同签订明细表</b>
    </td>
 </tr>
    <tr>
    <td width="60" rowspan="2"><div align="center">序号</div></td>
    <td width="60" rowspan="2"><div align="center">单 位 名 称</div></td>
    <td width="60" rowspan="2"><div align="center">经济性质</div></td>
    <td width="60" rowspan="2"><div align="center">法人代表</div></td>
    <td width="60" rowspan="2"><div align="center">经办人</div></td>
    <td width="60" rowspan="2"><div align="center">联系电话</div></td>
    <td width="60" rowspan="2"><div align="center">总人数</div></td>
    <td height="27" colspan="5"><div align="center">劳动合同期限</div></td>
    <td width="60" rowspan="2"><div align="center">备 注</div></td>
  </tr>
  <tr>
    <td width="60" height="44"><div align="center">1年以下</div></td>
    <td width="60"><div align="center">1-3年</div></td>
    <td width="60"><div align="center">3-5年</div></td>
    <td width="60"><div align="center">无固定期限</div></td>
    <td width="60"><div align="center">劳动合同签订人数</div></td>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <c:set var="l0" scope="page" value="${l0 + prod[4]}"/>
  <c:set var="l1" scope="page" value="${l1 + prod[5]}"/>
  <c:set var="l2" scope="page" value="${l2 + prod[6]}"/>
  <c:set var="l3" scope="page" value="${l3 + prod[7]}"/>
  <c:set var="l4" scope="page" value="${l4 + prod[8]}"/>
  <c:set var="l5" scope="page" value="${l5 + prod[9]}"/>
  <tr>
    <td><div align="center">${lineInfo.count}</div></td>
    <td>${prod[0]}</td>
    <td>${prod[1]}</td>
    <td>${prod[2]}</td>
    <td>&nbsp;</td>
    <td>${prod[3]}</td>
    <td>${prod[4]}</td>
    <td>${prod[5]}</td>
    <td>${prod[6]}</td>
    <td>${prod[7]}</td>
    <td>${prod[8]}</td>
    <td>${prod[9]}</td>
    <td>&nbsp;</td>
  </tr>
  </c:forEach>
  <tr>
    <td><div align="center">合计</div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>${l0}</td>
    <td>${l1}</td>
    <td>${l2}</td>
    <td>${l3}</td>
    <td>${l4}</td>
    <td>${l5}</td>
    <td>&nbsp;</td>
  </tr>
</c:if>
<c:if test="${empty param.areaCode}">
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>请选择统计条件！</b>
    </td>
 </tr>
</c:if>
<c:if test="${!empty param.areaCode && empty list}">
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>没有符合要求的数据！</b>
    </td>
 </tr>
</c:if>
</table>
</body>
</html>
